$(function(){
    alert("aaaa");
    $("#delBtn").click(delBtn);
});


function delBtn(){
    alert("sssss");
    $.post(
        CONTEXT_PATH + "/data/authority",
        {"userId":$("#userId").val(),
         "type":0
        },
        function(data) {
            data = $.parseJSON(data);
            if(data.code == 0) {
                $("#delBtn").attr("disabled", "disabled");
            } else {
                alert(data.msg);
            }
        }
    );

}
